<template>
  <ul>
    <li
      @click="
        $router.push({ path: '/business-detail', query: { id: item.id } })
      "
      v-for="item in list"
      class="item-cell"
    >
      <div class="img"><img :src="item.avatar" alt="" /></div>
      <div class="content_bd">
        <div class="title">{{ item.title }}</div>
        <div class="content">{{ item.synopsis }}</div>
      </div>
    </li>
  </ul>
</template>

<script>
export default {
  props: ["list"]
};
</script>

<style lang="less" scoped>
.item-cell {
  width: 100%;
  position: relative;
  background-color: #ffffff;
  color: rgba(68, 68, 68, 1);
  font-size: 0.58rem;
  display: flex;
  padding: 0.48rem 0.48rem;
  margin-bottom: 0.2rem;
  .img {
    width: 5rem;
    height: 3.6rem;
    margin-right: 0.48rem;
    background-color: #dfdfdf;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .content_bd {
    width: calc(100% - 5rem);
    overflow: hidden;
    .title {
      margin: 0.5rem 0 0.23rem 0;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      font-weight: bold;
      font-size: 0.56rem;
      color: #444444;
    }
    .content {
      color: #999999;
      font-size: 0.48rem;
      line-height: 0.7rem;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
    }
  }
}
</style>
